/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.aes.order;

import java.util.Random;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;

/**
 *
 * @author Raghav
 */
@WebService(serviceName = "CustomerOrder")
public class CustomerOrder {

    @WebMethod(operationName = "createOrder")
    public String createOrder(@WebParam(name = "orderInput")
    String orderInput) {
        String s;
        s="<CustomerOrder>";
        s+="<OrderID>";
        Random rand=new Random();
        String Orderid="Ord"+rand.nextInt();
        s+=Orderid;
        s+="</OrderID>";
        s+=orderInput;
        s+="</CustomerOrder>";
        return s;
    }

    
    
}
